<template>
	<view class="qr-code-box">
		<image class="qrcode-img-box" mode='scaleToFill' :src='imgSrc'></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgSrc:''
			}
		},
		onLoad(){
			this.getData()
		},
		methods: {
			getData(){
				let params = {
				};
				let self = this
				self.$https(
					'mine.myQrcode',
					{
						data: params
					},
					'加载中...'
				).then(res => {
					if (res.code === 1) {
						self.imgSrc = res.data.img || ''
					}else{
						self.imgSrc = ''
					}
				});
			}
		}
	}
</script>

<style>
.qr-code-box{
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	padding-top: 60rpx;
}
.qrcode-img-box{
	width: 490rpx;
	height: 490rpx;
}
</style>
